package com.ape.mapsa.bpm.service;

import java.util.Collection;
import java.util.List;
import java.util.Map;

import org.activiti.engine.ActivitiObjectNotFoundException;
import org.activiti.engine.ActivitiTaskAlreadyClaimedException;
import org.activiti.engine.task.Task;

public interface IBPMService {
	public void firstTest();

	public void startProductionProcess(Long pedidoVenta, Long prodId, String itemCode, String author, Integer itemState);

	public List<Task> getTasksByGroup(List<String> userGroups);

	public Task getTaskById(String parseInt);

	public void completeTask(String taskId, Map<String, Object> variables);

	public void completeTask(String executionId);

	public void claimTask(String taskId, String userId) throws ActivitiObjectNotFoundException, ActivitiTaskAlreadyClaimedException;

	public Collection<? extends Task> getTasksByUser(String userEmail);

}